package com.youbug.kefu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youbug.kefu.entity.Chat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youbug.kefu.vo.ChatVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 会话表 服务类
 * </p>
 *
 * @author youbug
 * @since 2023-01-07
 */
public interface IChatService extends IService<Chat> {

    IPage<Chat> getChatPage(ChatVo chatVo);

    boolean closeChat(Chat chat);

    IPage<Chat> getChatPageForClient(ChatVo chatVo);

    String download(ChatVo chatVo);

    String saveAndReverseRecord(MultipartFile file);
}
